<%@ page import="grails.util.Metadata; grame.AppSetting" contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="zh_CN" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="zh_CN" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="zh_CN" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="zh_CN" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="zh_CN" class="no-js"><!--<![endif]-->
<head>
    <g:set var="appName" value="${params.appName ?: (AppSetting.findByName('default.app.name') ?: 'Grame')}"/>
    <g:set var="appVersion" value="${Metadata.getCurrent().getApplicationVersion() ?: ''}"/>
    <g:set var="pageTitle" value="${params.pageTitle ?: (AppSetting.findByName('default.page.title') ?: appName)}"/>
    <g:set var="skinName" value="${params.skinName ?: (AppSetting.findByName('default.skin.name') ?: 'grame')}"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title><g:layoutTitle default="${message(code: "page.title.${pageTitle}", default: pageTitle)}"/></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="${assetPath(src: "skin/${skinName}/favicon.ico")}" type="image/x-icon">
    <link rel="apple-touch-icon" href="${assetPath(src: "skin/${skinName}/apple-touch-icon.png")}">
    <link rel="apple-touch-icon" sizes="114x114" href="${assetPath(src: "skin/${skinName}/apple-touch-icon-retina.png")}">
    <asset:stylesheet src="application"/>
    <g:layoutHead/>
</head>

<body>
<a class="sr-only sr-only-focusable" href="#content">Skip to content&hellip;</a>
<g:layoutBody/>
<!-- Placed at the end of the document so the pages load faster -->
<asset:javascript src="application"/>
<script>
    (function () {
        'use script';
        angular.module('grame.ServerContants', [])
                .constant('contextPath', '${request.getContextPath()}');
    })();
</script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<asset:javascript src="ltIE9"/>
<![endif]-->
<g:pageProperty name="page.script"/>

</body>
</html>